package com.smedi.ismedi.inmail.core.domain.repository;

import com.smedi.ismedi.inmail.core.domain.aggregatemodel.announcement.AttachmentDetail;
import com.smedi.ismedi.inmail.core.domain.aggregatemodel.announcement.AttachmentDetailInfo;

/**
 * 通知公告附件关系实现类
 *
 * @author niuyanling
 * @date 2021/07/27
 */
public interface AttachmentDetailRepository {
    /**
     * 公告与附件关系表的插入接口
     *
     * @param attachmentDetail 通知公告与主体院关系业务类
     * @return AttachmentDetail
     */
    AttachmentDetail doInsert(AttachmentDetail attachmentDetail);

    /**
     * 公告基本表的通过公告id更新是否有效的状态
     *
     * @param announcementId 通知公告id
     * @return AttachmentInfo
     */
    AttachmentDetailInfo doSelectByAnnouncementId(Long announcementId);
}
